package test.dataprovider.resultprocessor;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

/**
 * Process the <code>java.sql.ResultSet</code>.
 * 
 * @author YongXia.
 * 
 * @since jdk1.6
 * @version 1.0
 * 
 * @param <E>
 *            The domain model.
 */
public interface IResultProcessor<E extends Serializable> {
	/**
	 * Process the <code>java.sql.ResultSet</code> to a
	 * <code>java.util.List</code> instance.
	 * 
	 * @author YongXia.
	 * 
	 * @since jdk1.6
	 * @version 1.0
	 * 
	 * @param results
	 * @return
	 * @throws SQLException
	 */
	List<E> process(final ResultSet results) throws SQLException;
}
